<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>教室后台-不学也通</title>
    <style> 
        .container{
            min-height: 100vh;
        }
        .container.nav{
            min-height: 100vh;
            background-color: #fff;
        }

        .link-secondary{
            text-decoration: none;
        }
        .link-secondary:hover{
            color: #0d6efd !important;
        }
    </style>
</head>

<body> 
    <!--container是bootstrap的居中窄的显示方案-->
    <div class="container bg-body-secondary">
        <div class="row">
            <div class="col-md-2 leftmenu" id="leftmenu">
                </div>
            <div class="col-md-9 kc ms-3">
                <div class="row mt-3">
                    <!--row似乎不能同时使用flex布局-->
                    <ul class="nav nav-tabs">
                        <li class="nav-item">
                            <a class="nav-link active" aria-current="page" href="#">我教的课程</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="#">我学的课程</a>
                        </li>
                        <li class="nav-item">
                            <select class="form-select" aria-label="select example">
                                <option selected value="-1">请选择学期</option>
                                <option value="0">2022-2023第二学期</option>
                                <option value="1">2022-2023第一学期</option>
                                <option value="2">2021-2022第二学期</option>
                                <option value="3">2021-2022第一学期</option>
                            </select>
                        </li>
                        <li class="nav-item ms-5">
                            <input type="text" class="form-control" placeholder="请输入课程名">
                            <i class="bi bi-search" style="position: absolute;right: 1rem;top: 0.7rem;"></i>
                        </li>
                        <li class="nav-item ms-5">
                            <a class="nav-link link-success" href="#">
                                <i class="bi bi-plus-circle-fill"></i>
                                创建文件夹
                            </a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link link-success" href="./createcourse.html">
                                <i class="bi bi-plus-circle-fill"></i>
                                创建课程
                            </a>
                        </li>
                    </ul>
                </div>
                <div class="row">学习选择栏</div>
                <div class="row">
                    <div class="card" style="width:  18rem;">
                        <img src="./img/u=2379173324,3055191993&fm=253&app=120&size=w931&n=0&f=JPEG&fmt=auto.webp" class="card-img-top" alt="web前端">
                        <div class="card-body">
                            <h5 class="card-title">web前端开发基础</h5>
                            <h6 class="mt-1 text-muted">平顶山职业技术学院</h6>
                            <h6 class="mt-1 text-muted">课程号:mb-001</h6>
                            <h6 class="mt-1 text-muted">教师</h6>
                            <h6 class="mt-1 text-muted d-flex justify-content-between">
                                <div>22级移动应用开发</div>
                                <div>17<i class="bi bi-chevron-right"></i></div>
                            </h6>
                        </div>
                    </div>
                    <div class="card" style="width:  18rem;">
                        <img src="./img/u=2379173324,3055191993&fm=253&app=120&size=w931&n=0&f=JPEG&fmt=auto.webp" class="card-img-top" alt="web前端">
                        <div class="card-body">
                            <h5 class="card-title">web前端开发基础</h5>
                            <h6 class="mt-1 text-muted">平顶山职业技术学院</h6>
                            <h6 class="mt-1 text-muted">课程号:mb-001</h6>
                            <h6 class="mt-1 text-muted">教师</h6>
                            <h6 class="mt-1 text-muted d-flex justify-content-between">
                                <div>22级移动应用开发</div>
                                <div>17<i class="bi bi-chevron-right"></i></div>
                            </h6>
                        </div>
                    </div>
                    <div class="card" style="width:  18rem;">
                        <img src="./img/u=2379173324,3055191993&fm=253&app=120&size=w931&n=0&f=JPEG&fmt=auto.webp" class="card-img-top" alt="web前端">
                        <div class="card-body">
                            <h5 class="card-title">web前端开发基础</h5>
                            <h6 class="mt-1 text-muted">平顶山职业技术学院</h6>
                            <h6 class="mt-1 text-muted">课程号:mb-001</h6>
                            <h6 class="mt-1 text-muted">教师</h6>
                            <h6 class="mt-1 text-muted d-flex justify-content-between">
                                <div>22级移动应用开发</div>
                                <div>17<i class="bi bi-chevron-right"></i></div>
                            </h6>
                        </div>
                    </div>
                    <div class="card" style="width:  18rem;">
                        <img src="./img/u=2379173324,3055191993&fm=253&app=120&size=w931&n=0&f=JPEG&fmt=auto.webp" class="card-img-top" alt="web前端">
                        <div class="card-body">
                            <h5 class="card-title">web前端开发基础</h5>
                            <h6 class="mt-1 text-muted">平顶山职业技术学院</h6>
                            <h6 class="mt-1 text-muted">课程号:mb-001</h6>
                            <h6 class="mt-1 text-muted">教师</h6>
                            <h6 class="mt-1 text-muted d-flex justify-content-between">
                                <div>22级移动应用开发</div>
                                <div>17<i class="bi bi-chevron-right"></i></div>
                            </h6>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script type="module" src="../js/main.js"></script>
    <script src="../js/jquery.min.js"></script>
    <script src="../js/common.js"></script>
    <script>
        $(document).ready(function(){
            //当用户点击class是nav-tab的标签给该标签(添加之前删除active类)添加active类
            $(".nav-tab").click(function(e){
                //删除nav-tab所有的active类
                $(".nav-tab").removeClass("active");
                //给点击的标签添加active类
                $(this).addClass("active");
            })
        })
    </script>
</body>
</html>